package edu.llg.generate;

import cn.hutool.core.io.FileUtil;
import edu.llg.Main;

import java.io.File;

/**
 * @author 隆利果
 * @version 1.0
 * @date 2024/2/23 0:35
 */
public class StaticGenerator {

    /**
     * 静态文件拷贝
     * @param originPath
     * @param targetPath
     */
    public static void copyFileByHutool(String originPath,String targetPath){
        FileUtil.copy(originPath,targetPath,false);
    }

    public static void main(String[] args) {
        String rootPath = System.getProperty("user.dir");
        String originPath = new File(rootPath).getParent() + File.separator + "xiaolong-codegenerate.bat-demo-projects\\acm-template";
        System.out.println(originPath);
        String targetPath = rootPath;
        copyFileByHutool(originPath,targetPath);
    }

}
